package vn.student.mylib;

	/*
	
		Class name: Contact.java
		Function: Day la lop chua thong tin chi tiet cua mot Contact. 
			Lop nay don gian chi chua cac Constructor de khoi tao doi tuong dung luu tru du lieu.
		
	*/
	
public class Contact {
	public String id;
	public String name;
	public String phoneNo;
	public String email;
	public String website;
	public String note;
	public String photo;
	public String address;
	public String type;
	public Contact() {
		
	}
	public Contact(String id,String name) {
		this.id = id;
		this.name = name;
	}
	public Contact(String[] info) {
		// TODO Auto-generated constructor stub
		this.id = info[0];
		this.name = info[1];
		this.phoneNo = info[2];
		this.email = info[3];
		this.website = info[4];
		this.note = info[5];
		this.photo = info[6];
		this.address = info[7];
	}
	public Contact(String id,String name,String phoneNo,String email,String website,String note,String photo,String address,String type) {
		// TODO Auto-generated constructor stub
		this.id=id;
		this.name=name;
		this.phoneNo = phoneNo;
		this.email = email;
		this.website = website;
		this.note = note;
		this.photo = photo;
		this.address = address;
		this.type = type;
	}
	public Contact(String id, String name, String email, String phoneNo) {
		this.id = id;
		this.name = name;
		this.email = email;
		this.phoneNo = phoneNo;
	}
	public String getId(){
		return id;
	}
	public String getName(){
		return name;
	}
	public String getEmail(){
		return email;
	}
	public String getPhoneNo(){
		return phoneNo;
	}
	public String getWebsite(){
		return website;
	}
	public String getNote(){
		return note;
	}
	public String getPhoto(){
		return photo;
	}
	public String getAddress(){
		return address;
	}

}
